//
//  GEHomeViewController.m
//  GPurchase
//
//  Created by limei.li on 2017/5/10.
//  Copyright © 2017年 gta Education. All rights reserved.
//

#import "GEHomeViewController.h"

@interface GEHomeViewController ()

@end

@implementation GEHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton * btn = [[UIButton alloc]initWithFrame:(CGRect){0,100,200,100}];
    [btn setTitle:@"showSecond" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(showSecond) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}
-(void)showSecond
{
    self.tabBarController.selectedIndex = 1;
}



@end
